﻿using System;

namespace GetType
{
    class Program
    {
        public class Point { public int X, Y; }
        static void Main(string[] args)
        {
            Point p = new Point();
            Console.WriteLine(p.GetType().Name); 
            Console.WriteLine(typeof(Point).Name); 
            Console.WriteLine(p.GetType() == typeof(Point)); 
            Console.WriteLine(p.X.GetType().Name);
            Console.WriteLine(p.Y.GetType().FullName); 
        }
    }
}
